4.5 Linear Models

1 "Gaussian-Adjacent" Distributions

1.1 Chi Square Distribution

If Z1,,Zdi.i.dN(0,1), then V=i=1dZi2χd2=Gamma(d2,2),EV=d,Var(V)=2d.
By CLT, Vd2dN(0,1). So informally, VdN(1,2d)1.

1.2 t Distribution

If ZN(0,σ2) and Vσ2χd2, ZV, then ZVdtdN(0,1).

1.3 F Distribution

If V1σ2χd12 and V2σ2χd22, V1V2, then V1/d1V2/d2Fd1,d21d1χd12 as d2.

2 One-Sample T-test

Xii.i.dN(μ,σ2)XNn(μ1n,σ2In). Want to test H0:μ=0 vs H1:μ0. Recall from this example the UMPU test is to reject for extreme R=nX||X||=Corr(X,1n). And T=nXS2=||Proj1nX||||Proj1nX||n1sgn(X)=R1R2.

2.1 Change of Basis

Let Q=[|||q1q2qn|||]=n[|q1Qr|], where q1=1n1n, q2,,qn are complete orthonormal basis (like via Gram-Schmidt). So the new basis is Z=QTX=(q1TXQrTX)=(nXQrTX).

||QrTX||2=||QTX||2||q1TX||2=||X||2nX2=(n1)S2.Z1N(nμ,σ2),Zr=QrTXN(0,σ2In1)S2=1n1||Zr||2σ2n1χn12Z1.

(We already know from Basu's theorem)

3 Canonical Linear Model

Assume Z=d0d1=dd0dr=nd(Z0Z1Zr)Nn((μ0μ10),σ2In).
Here μ0Rd0,μ1Rd1,σ2>0. Test H0:μ1=0 vs H1:μ10. Then z is exponential family p(z)=eμ1σ2TZ1+μ0σ2TZ012σ2||Z||2.

Compare:

Z t χ2 F
Z1σ Z1σ^ |Z1|2σ2 |Z1|2/d1σ^2

3.1 Intervals for Canonical Model

How to test H0:μ1=μ10Rd? The problem is μ1 is not a natural parameter. We translate the problem to (Z0Z1μ10Zr)Nd((μ0μ1μ100),σ2In).
Can do some tests with Z1μ10 replacing Z1. Invert:

4 General Linear Model

Many problems can be put into canonical linear model after change of basis.
Basic setup: observer YNn(θ,σ2In),σ2>0 known or unknown. Test H0:θΘ0 vs H1:θΘΘ0, where Θ0Θ are subspaces of Rn, dim(Θ0)=d0,dim(Θ)=d=d0+d1.
The idea is to rotate into canonical form.
For Q=n[Q0d0Q1d1Qrnd], where Q0,Q1,Qr are respectively orthonormal basis for Θ0,ΘΘ0,RnΘ, and Z=QTYNn((Q0TθQ1Tθ0),σ2In). So H0:Q1Tθ=0. Like canonical linear model, we can do z, χ2, t, F test as appropriate.